package com.xjh.him.util;

import java.util.Base64;

public class Base64Util {

    public static String encode(byte[] src) {
        byte[] encode = Base64.getEncoder().encode(src);
        return new String(encode);
    }

    public static byte[] decode(String encodeStr) {
        return Base64.getDecoder().decode(encodeStr);
    }
}
